import wtforms

from packages.common.base import BaseForm, BasePageForm


class PostForm(BaseForm):
    """
    岗位表单校验类
    """
    id = wtforms.IntegerField()
    name = wtforms.StringField("岗位名称", [wtforms.validators.DataRequired(message="岗位名称不能为空")])
    code = wtforms.StringField("唯一编码", [wtforms.validators.DataRequired(message="唯一编码不能为空")])
    sort = wtforms.StringField("排序")
    enabled = wtforms.StringField("是否启用")
    remark = wtforms.StringField("备注")
    createUser = wtforms.StringField("创建用户")
    updateUser = wtforms.StringField("更新用户")


class PostPageForm(BasePageForm):
    """
    岗位分页校验类
    """
    pass
